﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProgrammeAdd.ascx.cs" Inherits="MockPrjTeam4.ProgrammeAdd" %>
<%@ Import Namespace="MockPrjTeam4.Entity" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<style type="text/css">
    .lookup
    {
        text-decoration: underline;
    }
    .wrap
    {
        border: 1px solid black;
        width: 860px;
        height: 300px;
        margin-left: 50px;
        margin-top: 50px;
        }
</style>
<div runat="Server" class="wrap">
    <table style="height: 298px; width: 732px; margin-left: 81px" runat="Server"    >
        <tr>
           <td colspan="2" align="right">
                <asp:Button ID="btnDeactive" runat="Server" Text="De-active" ForeColor="Back"
                OnClientClick="return confirm('Do you want to make this Programme in-active?');"
                OnClick="btnDeactive_Click"/>
                <asp:HiddenField ID="hdfInactive" runat="Server"/>
                <asp:Button ID="btnSave" runat="Server" Text="Save" onclick="btnSave_Click"/>&nbsp
                <asp:Button ID="btnBack" runat="Server" Text="Back" OnClick="btnBack_Click" CausesValidation="false"/>&nbsp
           </td> 
        </tr>
        <tr>
            <td valign="middle">
                Programme Name
                <asp:Label ID="Label1" runat="Server" Text="*" ForeColor="red"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="Server" ID="txtProName" Height="27px" Width="220px"></asp:TextBox>
                <br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="Server" ControlToValidate="txtProName"
                ErrorMessage="You must enter Programme Name" ForeColor="red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td valign="middle">
                Contact
            </td>
            <td>
                <asp:TextBox ID="txtContactName" runat="Server" Enabled="false" BackColor="#CCCCCC" Height="28px" 
                    Width="221px" ClientIDMode="Static"></asp:TextBox>&nbsp
                    <asp:HiddenField ID="hdfContact" runat="Server" ClientIDMode="Static"/>
                <asp:LinkButton runat="Server" ID="lkbtnLookup" CssClass="lookup" Text="Look up"
                OnClientClick="popup('PopupContact.aspx', 670, 580);" ></asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td valign="middle">
                Description
            </td>
            <td>
                <asp:TextBox runat="Server" ID="txtDes" Height="82px" Width="224px" Font-Names="Time New Romans"
                    TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblMessage" runat="Server" ForeColor="red" Font-Size="Larger" Font-Bold="true"></asp:Label>
            </td>
        </tr>
    </table>
</div>
<asp:ScriptManager ID="scriptAjaxToolkit" runat="server">
</asp:ScriptManager>

